package com.test

import com.main
import org.jetbrains.kotlin.org.fusesource.jansi.AnsiConsole
import kotlin.test.Test

class PicocliTest {


    @Test
    fun testHelp() {

        // 添加系统属性启用 ANSI 支持
//        System.setProperty("jansi.force", "true")
//        System.setProperty("org.jline.terminal.disable.jna", "false")

        AnsiConsole.systemInstall()

        val args = arrayOf("-h")
        main(args)

        AnsiConsole.systemUninstall()

    }


}